package sf.j2tree.list;

/**
 * Created by ping on 2017-09-11.
 */
public interface LinkList<T> {
    boolean isEmpty();

    int length();

    T get(int index);

    T replace(int index, T t);

    boolean add(int index, T t);

    boolean add(T t);

    boolean remove(int index);

    boolean remove(T t);

    boolean removeAll();

    void clear();

    boolean contains(T t);

    int indexOf(T t);
}
